package cn.com.thinvent.dispatch.dao;

import cn.com.thinvent.dispatch.dao.base.BaseMapper;
import cn.com.thinvent.dispatch.entity.DataCleanTask;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;

import java.util.List;

public interface DataCleanTaskMapper extends BaseMapper<DataCleanTask> {
    List<DataCleanTask> queryAllByLimit(@Param("taskName")String taskName,
                             @Param("pageBegin")Integer pageBegin,
                             @Param("pageSize")Integer pageSize);

    Long count(@Param("taskName")String taskName);

    Integer deleteById(@Param("id") Integer id);
}
